package Problem5;

public class Main {

	public static void main(String[] args) {
		long check = factorial(20);
		int answer = 0;
		for (int i = 1; i < check; i++){
			boolean found = true;
			for (int j = 20; j > 0; j--){
				if (i % j !=0){
					found = false;
					break;
				}
			}
			if (found){
				answer = i;
				break;
			}	
		}
		System.out.println(answer);
	}
	public static long factorial(int num) {
		long result = num;
		for (int i = num - 1; i > 0; i--) {
			result = result * i;
		}
		return result;
	}

}
